﻿namespace EFS.RC.CC.CHL.Loggers.Messages
{
	public class QuestionareSessionAnswer : EFS.RC.CC.CHL.Loggers.Messages.Message
	{
		/// Constructor
		public QuestionareSessionAnswer(
			System.Guid conversationGuid,
			System.Int32 questionId,
			System.Int32 answreCode)
			: base()
		{
			// check
			EFS.Common.Verify.Guid(conversationGuid, "conversationGuid");

			// set
			ConversationGuid = conversationGuid;
			QuestionId = questionId;
			AanswerCode = answreCode;
				 
			// add to list
			EFS.RC.CC.CHL.Loggers.Logger.Instance.Add(this);
		}

		/// Properties
		public System.Guid ConversationGuid { get; private set; }
		public System.Int32 QuestionId { get; private set; }
		public System.Int32 AanswerCode { get; private set; }
	}
}